
@REM %1 mshta vbscript:CreateObject("Shell.Application").ShellExecute("cmd.exe","/c %~s0 ::","","runas",1)(window.close)&&exit
@REM java -jar -Dfile.encoding=utf-8 sumimoto-rob-0.0.1-SNAPSHOT.jar  --server.port=8089 >  sumimoto-rob.log 2>&1 &

@REM nohup java -jar sumimoto-rob-0.0.1-SNAPSHOT.jar > output.log 2>&1 &

@echo off
cd /d "%~dp0"

start "JavaApp" /B javaw.exe -jar sumimoto-rob-0.0.1-SNAPSHOT.jar --server.port=8089 > output.log 2>&1

(
    timeout /t 5 /nobreak
    if exist output.log (
       
    ) else (
        echo [ERROR] 启动失败 >> error.log
    )
) || (
    echo [FATAL] 验证流程失败 >> error.log
)

exit

